package com.example.admin.dto;

import com.example.common.enums.ExpressEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 轮播图分页DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderDeliverDTO {
    @ApiModelProperty(value = "订单id", example = "1")
    @NotNull(message = "订单id不能为空")
    private Integer orderId;

    @ApiModelProperty(value = "快递方式", example = "ExpressEnum.class")
    @NotNull(message = "缺少快递方式")
    private ExpressEnum expressType;

    @ApiModelProperty(value = "快递编号", example = "SF10086")
    @NotNull(message ="缺少快递编号")
    private String expressCode;
}
